/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cput.tp.patterns.structural.bridge;

/**
 *
 * @author Malotana
 */
public class SmallCar extends Vehicle{
    public SmallCar(Engine engine){
      this.weightInkilos = 600;
      this.engine = engine;
    }

    @Override
    public void drive() {
        System.out.println("\nThe small car is Driving");
        int horsepower = engine.go();
        reportOnspeed(horsepower);
    }
}